package cn.smdq.ch.code.generator.util;

/**
 * @Description 代码输出路径构造
 * @Author shuimodanqing
 * @Date 2019/1/18  3:36 PM
 */
public class OutputPathExtractor {

    public static String basePath(){
        // 路径为hope-code-generator路径、需要获取的路径为上一级路径即 hope路径
        String localPath = System.getProperty("user.dir");
        String basePathToUse = localPath.substring(0,localPath.lastIndexOf("/"));
        return basePathToUse;
    }
}
